﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Jinndev.UI {

    [System.Obsolete]
    public class ChangeLayerProxy : MonoBehaviour, IChangeLayer {

        public static void Create(GameObject host, IChangeLayer target) {
            host.AddComponent<ChangeLayerProxy>().target = target;
        }

        public IChangeLayer target;

        public void OnCover() {
            target?.OnCover();
        }

        public void OnTop() {
            target?.OnTop();
        }

    }


}